package letsjava.pattern.template;

public class TemplateBenchmark extends Benchmark {
	/** * 真正定义benchmark内容 */
	public void benchmark() {
		for (int i = 0; i < Byte.MAX_VALUE; i++) {
			System.out.println("i=" + i);
		}
	}

	public static void main(String[] args) {
		TemplateBenchmark operation = new TemplateBenchmark();
		long duration = operation.repeat(5);
		System.out.println("The operation took " + duration + " milliseconds");
	}
}